package com.changcheng.project.obuupgradelogs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changcheng.project.obuupgradelogs.mapper.AObuUpgradelogsMapper;
import com.changcheng.project.obuupgradelogs.domain.AObuUpgradelogs;
import com.changcheng.project.obuupgradelogs.service.IAObuUpgradelogsService;
import com.changcheng.common.utils.text.Convert;

/**
 * OBU升级记录Service业务层处理
 * 
 * @author dazhi
 * @date 2020-11-09
 */
@Service
public class AObuUpgradelogsServiceImpl implements IAObuUpgradelogsService 
{
    @Autowired
    private AObuUpgradelogsMapper aObuUpgradelogsMapper;

    /**
     * 查询OBU升级记录
     * 
     * @param id OBU升级记录ID
     * @return OBU升级记录
     */
    @Override
    public AObuUpgradelogs selectAObuUpgradelogsById(Long id)
    {
        return aObuUpgradelogsMapper.selectAObuUpgradelogsById(id);
    }

    /**
     * 查询OBU升级记录列表
     * 
     * @param aObuUpgradelogs OBU升级记录
     * @return OBU升级记录
     */
    @Override
    public List<AObuUpgradelogs> selectAObuUpgradelogsList(AObuUpgradelogs aObuUpgradelogs)
    {
        return aObuUpgradelogsMapper.selectAObuUpgradelogsList(aObuUpgradelogs);
    }

    /**
     * 新增OBU升级记录
     * 
     * @param aObuUpgradelogs OBU升级记录
     * @return 结果
     */
    @Override
    public int insertAObuUpgradelogs(AObuUpgradelogs aObuUpgradelogs)
    {
        return aObuUpgradelogsMapper.insertAObuUpgradelogs(aObuUpgradelogs);
    }

    /**
     * 修改OBU升级记录
     * 
     * @param aObuUpgradelogs OBU升级记录
     * @return 结果
     */
    @Override
    public int updateAObuUpgradelogs(AObuUpgradelogs aObuUpgradelogs)
    {
        return aObuUpgradelogsMapper.updateAObuUpgradelogs(aObuUpgradelogs);
    }

    /**
     * 删除OBU升级记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAObuUpgradelogsByIds(String ids)
    {
        return aObuUpgradelogsMapper.deleteAObuUpgradelogsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除OBU升级记录信息
     * 
     * @param id OBU升级记录ID
     * @return 结果
     */
    @Override
    public int deleteAObuUpgradelogsById(Long id)
    {
        return aObuUpgradelogsMapper.deleteAObuUpgradelogsById(id);
    }
}
